import request from '@/utils/request';

//获取首页统计信息
export function getHomeStatData(count) {
	return request({
		method: 'get',
		url: 'busiStat/baseHomeStat/' + count
	})
}

//获取首页访问量和下载量图表数据
export function getHomeEchartStat(type) {
	return request({
		method: 'get',
		url: 'busiStat/statHomeByType/' + type
	})
}

//根据下载量查询区间里的资源热度排名
export function getResourceRank(data) {
	return request({
		method: 'post',
		url: 'busiStat/queryZyByType',
		data
	})
}